NXP Semiconductors /LPC408x_7x /COMPARATOR /CTRL

Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text

Interpret as CTRL

31 2827 2423 2019 1615 1211 87 43 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 (DISABLED)CMP_PD_IREF 0 (DISABLED)CMP_PD_VBG 0 (DISABLED)CMP_VTEMP 0 (DISABLED)CMP_TEMPSEN 0 (CMP1)CMP_ROSCCTL 0 (INTRESET)CMP_EXT_RESET 0RESERVED 0 (COMP0)CMP_T0CAP2 0 (COMP0)CMP_T0CAP3 0 (COMP1)CMP_T1CAP2 0 (COMP1)CMP_T1CAP3 0RESERVED

CMP_T0CAP2=COMP0, CMP_ROSCCTL=CMP1, CMP_PD_IREF=DISABLED, CMP_PD_VBG=DISABLED, CMP_TEMPSEN=DISABLED, CMP_T1CAP2=COMP1, CMP_T0CAP3=COMP0, CMP_EXT_RESET=INTRESET, CMP_VTEMP=DISABLED, CMP_T1CAP3=COMP1

Description

Comparator block control register

Fields

CMP_PD_IREF

Controls the current source used by the comparators. These bits must be set when either comparator is used.

0 (DISABLED): The comparator current source is disabled.

1 (DIS_DEEPSLP_PWRDWN): The comparator current source is disabled in Deep Sleep and Power-down modes and restored automatically when exiting those modes.

2 (DIS_PWRDWN): The comparator current source is disabled in Power-down mode and restored automatically when exiting Power-down.

3 (ENABLED): The comparator current source is powered up.

CMP_PD_VBG

Controls the bandgap reference source that is used by the comparators. These bits must be set when either comparator is used.

0 (DISABLED): The comparator bandgap reference is disabled.

1 (DIS_DEEPSLP_PWRDWN): The comparator bandgap reference is disabled in Deep Sleep and Power-down modes and restored automatically when exiting those modes.

2 (DIS_PWRDWN): The comparator bandgap reference is disabled in Power-down mode and restored automatically when exiting Power-down.

3 (ENABLED): The comparator bandgap reference is powered up.

CMP_VTEMP

Controls the voltage reference of the temperature sensor. These bits must be set when the temperature sensor is used.

0 (DISABLED): The temperature sensor voltage reference is disabled.

1 (DIS_DEEPSLP_PWRDWN): The temperature sensor voltage reference is disabled in Deep Sleep and Power-down modes and restored automatically when exiting those modes.

2 (DIS_PWRDWN): The temperature sensor voltage reference is disabled in Power-down mode and restored automatically when exiting Power-down.

3 (ENABLED): The temperature sensor voltage reference is powered up.

CMP_TEMPSEN

Enables the temperature sensor. These bits must be set when the temperature sensor is used.

0 (DISABLED): Temperature sensor is disabled.

1 (DIS_DEEPSLP_PWRDWN): The temperature sensor is disabled in Deep Sleep and Power-down modes and restored automatically when exiting those modes.

2 (DIS_PWRDWN): The temperature sensor is disabled in Power-down mode and restored automatically when exiting Power-down.

3 (ENABLED): Temperature sensor is enabled.

CMP_ROSCCTL

Selects the inputs for the flip/flops that provide the CMP_ROSC output.

0 (CMP1): The CMP_ROSC output is set by CMP1 and reset by CMP0.

1 (CMP0): The CMP_ROSC output is set by CMP0 and reset by CMP1.

CMP_EXT_RESET

Selects the reset source for the CMP_ROSC output.

0 (INTRESET): The CMP_ROSC output is reset by the internal chip reset.

1 (CMP_RESETIN): The CMP_ROSC output is reset by the CMP_RESET input.

RESERVED

Reserved.

CMP_T0CAP2

Selects the input for Timer 0 capture input 2.

0 (COMP0): T0CAP2 is connected to comparator 0 level output.

1 (COMP1): T0CAP2 is connected to comparator 1 level output.

CMP_T0CAP3

Selects the input for Timer 0 capture input 3.

0 (COMP0): T0CAP3 is connected to comparator 0 edge output.

1 (COMP1): T0CAP3 is connected to comparator 1 edge output.

CMP_T1CAP2

Selects the input for Timer 1 capture input 2.

0 (COMP1): T1CAP2 is connected to comparator 1 edge output.

1 (COMP0): T1CAP2 is connected to comparator 0 level output.

CMP_T1CAP3

Selects the input for Timer 1 capture input 3.

0 (COMP1): T1CAP3 is connected to comparator 1 level output.

1 (COMP0): T1CAP3 is connected to comparator 0 edge output.

RESERVED

Reserved.

Links

()